#include <iostream>
#include <unistd.h>
#include <wiringPi.h>
#include <softPwm.h>
#ifndef tmodestructokcpp
#define tmodestructokcpp
namespace t_mode_struct{
        enum ledmode
        {
            t_MOD_FLASHING,
            t_MOD_CONSTANT
        };
        //typedef int Frequency;
        struct led{
        // led(int input,int timemode=t_MOD_CONSTANT): input(input),timemode(timemode){
        //     pinMode(input,OUTPUT);
        // }
        led(int input,int timemode=t_MOD_FLASHING,int frequency=-1): input(input),timemode(timemode),frequency(frequency){
            pinMode(input,OUTPUT);
        }
        void startlight();
        void stoplight();
        int input;
        int timemode;
        int frequency;
    };
    void led::startlight(){
        if (timemode=t_MOD_CONSTANT){
            digitalWrite(input,1);
        }
        if(timemode=t_MOD_FLASHING){
        }
    }
    void led::stoplight(){
        digitalWrite(input,0);
    }
}
#endif